﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ThinhTien.EF4;

namespace ThinhTien.Data
{
    public static class Database
    {
        private static THINHTIENDBEntities dbInstant;
        public static THINHTIENDBEntities DbInstant
        {
            get
            {
                if (dbInstant == null)
                {
                    dbInstant = new THINHTIENDBEntities();
                }

                return dbInstant;
            }
        }

        public static void ResetInstant()
        {
            dbInstant = null;
        }
    }
}
